<h2>Diagnosticos  
<?php echo link_to('Agregar'    , '@diagnostico_nuevo', array('class' =>'action')) ?>&nbsp;&nbsp; 
</h2>

<table>
  <thead>
    <tr>
      <th>Fecha de la medida</th>
      <th>Fecha de Actualizaci&oacute;n</th>
      <th>Doctor</th>
      <th>Servicio</th>
      <th/>
    </tr>
  </thead>
  <tbody>
  <?php foreach($diagnosticos as $key => $diagnostico): ?>
    <tr class="evening">
      <td><?php echo $diagnostico->getCreatedAtFormateado() ?></td>
      <td><?php echo $diagnostico->getUpdatedAtFormateado() ?></td>
      <td><?php echo $diagnostico->getDoctor()->getNombreCompleto() ?></td>
      <td><?php echo $diagnostico->getServicioMedico()->getNombre() ?></td>
      <td>
        <?php echo link_to('Editar', '@diagnostico_editar?slug='.$diagnostico->getId()) ?><br>
        <?php echo link_to('Elimiar', '@diagnostico_eliminar?slug='.$diagnostico->getId()) ?><br>
      </td>
    </tr>
  <?php endforeach; ?>    
  </tbody>
</table>
